.class public Lcom/estrongs/io/archive/aeszip/c;
.super Les/f80;
.source "AesZipOutputArchive.java"


# instance fields
.field protected e:Les/to0;

.field private f:Les/no0;

.field private g:Ljava/lang/String;

.field private h:I

.field private i:Z


# direct methods
.method public constructor <init>(Ljava/lang/String;Les/l80;Ljava/lang/String;)V
    .locals 1

    .line 6
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    invoke-direct {p0, p1, p2, v0}, Les/f80;-><init>(Ljava/lang/String;Les/l80;Ljava/util/Map;)V

    const/4 p1, 0x0

    .line 7
    iput-object p1, p0, Lcom/estrongs/io/archive/aeszip/c;->f:Les/no0;

    const/4 p1, 0x0

    .line 8
    iput p1, p0, Lcom/estrongs/io/archive/aeszip/c;->h:I

    .line 9
    iput-object p3, p0, Lcom/estrongs/io/archive/aeszip/c;->g:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;Les/l80;Ljava/util/Map;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Les/l80;",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    const-string v0, "password"

    .line 1
    invoke-interface {p3, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-direct {p0, p1, p2, v0}, Lcom/estrongs/io/archive/aeszip/c;-><init>(Ljava/lang/String;Les/l80;Ljava/lang/String;)V

    const-string p1, "compress_level"

    .line 2
    invoke-interface {p3, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/String;

    if-eqz p1, :cond_0

    .line 3
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result p2

    if-lez p2, :cond_0

    .line 4
    invoke-static {p1}, Lcom/estrongs/android/util/o0;->c(Ljava/lang/String;)I

    move-result p1

    iput p1, p0, Lcom/estrongs/io/archive/aeszip/c;->h:I

    goto :goto_0

    :cond_0
    const/4 p1, -0x1

    .line 5
    iput p1, p0, Lcom/estrongs/io/archive/aeszip/c;->h:I

    :goto_0
    return-void
.end method

.method private a(Ljava/io/File;Ljava/io/File;Ljava/lang/String;)V
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 98
    new-instance v0, Ljava/io/FileInputStream;

    invoke-direct {v0, p1}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V

    .line 99
    new-instance p1, Ljava/io/FileOutputStream;

    invoke-direct {p1, p2}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V

    .line 100
    new-instance p2, Ljava/util/zip/ZipOutputStream;

    invoke-direct {p2, p1}, Ljava/util/zip/ZipOutputStream;-><init>(Ljava/io/OutputStream;)V

    .line 101
    iget p1, p0, Lcom/estrongs/io/archive/aeszip/c;->h:I

    invoke-virtual {p2, p1}, Ljava/util/zip/ZipOutputStream;->setLevel(I)V

    .line 102
    :try_start_0
    new-instance p1, Ljava/util/zip/ZipEntry;

    invoke-direct {p1, p3}, Ljava/util/zip/ZipEntry;-><init>(Ljava/lang/String;)V

    invoke-virtual {p2, p1}, Ljava/util/zip/ZipOutputStream;->putNextEntry(Ljava/util/zip/ZipEntry;)V

    const/16 p1, 0x400

    new-array p1, p1, [B

    .line 103
    :cond_0
    invoke-virtual {v0, p1}, Ljava/io/FileInputStream;->read([B)I

    move-result p3

    if-lez p3, :cond_1

    const/4 v1, 0x0

    .line 104
    invoke-virtual {p2, p1, v1, p3}, Ljava/util/zip/ZipOutputStream;->write([BII)V

    .line 105
    iget-wide v1, p0, Les/f80;->c:J

    int-to-long v3, p3

    add-long/2addr v1, v3

    iput-wide v1, p0, Les/f80;->c:J

    .line 106
    iget-object p3, p0, Les/f80;->b:Les/l80;

    const-wide/16 v3, 0x2

    div-long/2addr v1, v3

    invoke-interface {p3, v1, v2}, Les/l80;->a(J)V

    .line 107
    iget-object p3, p0, Les/f80;->b:Les/l80;

    invoke-interface {p3}, Les/j80;->a()Z

    move-result p3

    if-eqz p3, :cond_0

    const/4 p1, 0x1

    .line 108
    iput-boolean p1, p0, Lcom/estrongs/io/archive/aeszip/c;->i:Z

    .line 109
    :cond_1
    invoke-virtual {p2}, Ljava/util/zip/ZipOutputStream;->closeEntry()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 110
    invoke-virtual {p2}, Ljava/util/zip/ZipOutputStream;->close()V

    .line 111
    invoke-virtual {v0}, Ljava/io/FileInputStream;->close()V

    return-void

    :catchall_0
    move-exception p1

    .line 112
    invoke-virtual {p2}, Ljava/util/zip/ZipOutputStream;->close()V

    .line 113
    invoke-virtual {v0}, Ljava/io/FileInputStream;->close()V

    .line 114
    goto :goto_1

    :goto_0
    throw p1

    :goto_1
    goto :goto_0
.end method


# virtual methods
.method protected a(Ljava/io/File;Ljava/lang/String;)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 40
    invoke-virtual {p1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/fs/impl/local/f;->c(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 41
    :cond_0
    iget-object v0, p0, Les/f80;->b:Les/l80;

    invoke-interface {v0}, Les/j80;->a()Z

    move-result v0

    if-eqz v0, :cond_1

    return-void

    :cond_1
    const-string v0, "/"

    if-eqz p2, :cond_3

    .line 42
    invoke-virtual {p2}, Ljava/lang/String;->length()I

    move-result v1

    const/4 v2, 0x1

    if-ge v1, v2, :cond_2

    goto :goto_0

    .line 43
    :cond_2
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    goto :goto_1

    .line 44
    :cond_3
    :goto_0
    invoke-virtual {p1}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object p2

    .line 45
    :goto_1
    invoke-virtual {p1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/fs/impl/local/f;->i(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_5

    .line 46
    iget-object v1, p0, Lcom/estrongs/io/archive/aeszip/c;->e:Les/to0;

    new-instance v2, Les/so0;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v2, v0}, Les/so0;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v2}, Les/to0;->a(Les/so0;)V

    .line 47
    invoke-virtual {p1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object p1

    sget-object v0, Lcom/estrongs/fs/h;->a:Lcom/estrongs/fs/h;

    invoke-static {p1, v0}, Lcom/estrongs/fs/impl/local/f;->a(Ljava/lang/String;Lcom/estrongs/fs/h;)Ljava/util/List;

    move-result-object p1

    .line 48
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_2
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_6

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    .line 49
    iget-object v1, p0, Les/f80;->b:Les/l80;

    invoke-interface {v1}, Les/j80;->a()Z

    move-result v1

    if-eqz v1, :cond_4

    return-void

    .line 50
    :cond_4
    new-instance v1, Ljava/io/File;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v1, p2}, Lcom/estrongs/io/archive/aeszip/c;->a(Ljava/io/File;Ljava/lang/String;)V

    goto :goto_2

    .line 51
    :cond_5
    iget-object v0, p0, Les/f80;->b:Les/l80;

    invoke-virtual {p1}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v1

    .line 52
    invoke-virtual {p1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/estrongs/fs/impl/local/f;->e(Ljava/lang/String;)J

    move-result-wide v2

    .line 53
    invoke-interface {v0, v1, v2, v3}, Les/l80;->a(Ljava/lang/String;J)V

    .line 54
    invoke-virtual {p0, p2, p1}, Lcom/estrongs/io/archive/aeszip/c;->a(Ljava/lang/String;Ljava/io/File;)V

    :cond_6
    return-void
.end method

.method public a(Ljava/lang/String;Ljava/io/File;)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 115
    iput-boolean v0, p0, Lcom/estrongs/io/archive/aeszip/c;->i:Z

    .line 116
    :try_start_0
    new-instance v0, Les/oo0;

    iget-object v1, p0, Lcom/estrongs/io/archive/aeszip/c;->g:Ljava/lang/String;

    const-string v2, "UTF-8"

    invoke-virtual {v1, v2}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v1

    invoke-direct {v0, v1}, Les/oo0;-><init>([B)V

    iput-object v0, p0, Lcom/estrongs/io/archive/aeszip/c;->f:Les/no0;
    :try_end_0
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 117
    invoke-virtual {v0}, Ljava/io/UnsupportedEncodingException;->printStackTrace()V

    .line 118
    :goto_0
    new-instance v0, Ljava/io/File;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v2, Lcom/estrongs/android/pop/b;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "_TMP.zip"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 119
    invoke-direct {p0, p2, v0, p1}, Lcom/estrongs/io/archive/aeszip/c;->a(Ljava/io/File;Ljava/io/File;Ljava/lang/String;)V

    .line 120
    new-instance p1, Ljava/util/zip/ZipFile;

    const/4 p2, 0x5

    invoke-direct {p1, v0, p2}, Ljava/util/zip/ZipFile;-><init>(Ljava/io/File;I)V

    .line 121
    invoke-virtual {p0, p1}, Lcom/estrongs/io/archive/aeszip/c;->a(Ljava/util/zip/ZipFile;)V

    return-void
.end method

.method public a(Ljava/util/List;)V
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const-wide/16 v0, 0x0

    .line 1
    iput-wide v0, p0, Les/f80;->c:J

    .line 2
    new-instance v0, Ljava/io/File;

    invoke-virtual {p0}, Les/f80;->a()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 3
    invoke-virtual {v0}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/fs/impl/local/f;->c(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 4
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 5
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v1

    invoke-virtual {v0}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/estrongs/fs/f;->o(Ljava/lang/String;)Z

    goto :goto_0

    .line 6
    :cond_0
    invoke-virtual {v0}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/fs/impl/local/f;->l(Ljava/lang/String;)Z

    .line 7
    :cond_1
    :goto_0
    new-instance v0, Les/d80;

    iget-object v1, p0, Les/f80;->b:Les/l80;

    invoke-direct {v0, v1}, Les/d80;-><init>(Les/l80;)V

    .line 8
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 9
    new-instance v3, Ljava/io/File;

    invoke-direct {v3, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v3}, Les/d80;->a(Ljava/io/File;)V

    goto :goto_1

    .line 10
    :cond_2
    iget-object v1, p0, Les/f80;->b:Les/l80;

    invoke-interface {v1}, Les/j80;->a()Z

    move-result v1

    if-eqz v1, :cond_3

    return-void

    .line 11
    :cond_3
    iget-object v1, p0, Les/f80;->b:Les/l80;

    new-instance v2, Ljava/io/File;

    iget-object v3, p0, Les/f80;->a:Ljava/lang/String;

    invoke-direct {v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0}, Les/d80;->c()J

    move-result-wide v3

    .line 12
    invoke-virtual {v0}, Les/d80;->a()I

    move-result v5

    invoke-virtual {v0}, Les/d80;->b()I

    move-result v0

    add-int/2addr v5, v0

    .line 13
    invoke-interface {v1, v2, v3, v4, v5}, Les/l80;->a(Ljava/lang/String;JI)V

    .line 14
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Les/f80;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, ".tmp"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 15
    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 16
    new-instance v2, Les/to0;

    new-instance v3, Ljava/io/BufferedOutputStream;

    .line 17
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/f;->g(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object v0

    const/high16 v4, 0x100000

    invoke-direct {v3, v0, v4}, Ljava/io/BufferedOutputStream;-><init>(Ljava/io/OutputStream;I)V

    invoke-direct {v2, v3}, Les/to0;-><init>(Ljava/io/OutputStream;)V

    iput-object v2, p0, Lcom/estrongs/io/archive/aeszip/c;->e:Les/to0;

    .line 18
    :try_start_0
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_2
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_4

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 19
    new-instance v2, Ljava/io/File;

    invoke-direct {v2, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    const-string v0, ""

    invoke-virtual {p0, v2, v0}, Lcom/estrongs/io/archive/aeszip/c;->a(Ljava/io/File;Ljava/lang/String;)V

    goto :goto_2

    .line 20
    :cond_4
    iget-object p1, p0, Les/f80;->a:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/fs/impl/local/f;->c(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_5

    .line 21
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object p1

    iget-object v0, p0, Les/f80;->a:Ljava/lang/String;

    invoke-virtual {p1, v0}, Lcom/estrongs/fs/f;->b(Ljava/lang/String;)Z

    .line 22
    :cond_5
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result p1

    if-eqz p1, :cond_6

    .line 23
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object p1

    .line 24
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v0

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/estrongs/fs/f;->g(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object v0

    iget-object v2, p0, Les/f80;->a:Ljava/lang/String;

    .line 25
    invoke-virtual {p1, v0, v2}, Lcom/estrongs/fs/f;->a(Lcom/estrongs/fs/g;Ljava/lang/String;)Z
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 26
    :cond_6
    iget-object p1, p0, Lcom/estrongs/io/archive/aeszip/c;->e:Les/to0;

    invoke-virtual {p1}, Les/to0;->b()V

    .line 27
    iget-object p1, p0, Lcom/estrongs/io/archive/aeszip/c;->e:Les/to0;

    invoke-virtual {p1}, Les/to0;->close()V

    .line 28
    iget-object p1, p0, Les/f80;->b:Les/l80;

    invoke-interface {p1}, Les/j80;->a()Z

    move-result p1

    if-eqz p1, :cond_7

    .line 29
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object p1

    invoke-virtual {v1}, Ljava/io/File;->getCanonicalPath()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/estrongs/fs/f;->b(Ljava/lang/String;)Z

    :cond_7
    return-void

    :catchall_0
    move-exception p1

    .line 30
    :try_start_1
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v0

    invoke-virtual {v1}, Ljava/io/File;->getCanonicalPath()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/estrongs/fs/f;->b(Ljava/lang/String;)Z

    .line 31
    invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V

    .line 32
    new-instance v0, Ljava/io/IOException;

    invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    :catch_0
    move-exception p1

    .line 33
    invoke-virtual {p1}, Ljava/io/IOException;->printStackTrace()V

    .line 34
    throw p1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    :catchall_1
    move-exception p1

    .line 35
    iget-object v0, p0, Lcom/estrongs/io/archive/aeszip/c;->e:Les/to0;

    invoke-virtual {v0}, Les/to0;->b()V

    .line 36
    iget-object v0, p0, Lcom/estrongs/io/archive/aeszip/c;->e:Les/to0;

    invoke-virtual {v0}, Les/to0;->close()V

    .line 37
    iget-object v0, p0, Les/f80;->b:Les/l80;

    invoke-interface {v0}, Les/j80;->a()Z

    move-result v0

    if-eqz v0, :cond_8

    .line 38
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v0

    invoke-virtual {v1}, Ljava/io/File;->getCanonicalPath()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/estrongs/fs/f;->b(Ljava/lang/String;)Z

    .line 39
    :cond_8
    goto :goto_4

    :goto_3
    throw p1

    :goto_4
    goto :goto_3
.end method

.method protected a(Ljava/util/zip/ZipEntry;Les/uo0;)V
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Ljava/io/UnsupportedEncodingException;
        }
    .end annotation

    .line 55
    new-instance v0, Les/so0;

    invoke-virtual {p1}, Ljava/util/zip/ZipEntry;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Les/so0;-><init>(Ljava/lang/String;)V

    .line 56
    invoke-virtual {p1}, Ljava/util/zip/ZipEntry;->getMethod()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/util/zip/ZipEntry;->setMethod(I)V

    .line 57
    invoke-virtual {p1}, Ljava/util/zip/ZipEntry;->getSize()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/util/zip/ZipEntry;->setSize(J)V

    .line 58
    invoke-virtual {p1}, Ljava/util/zip/ZipEntry;->getCompressedSize()J

    move-result-wide v1

    const-wide/16 v3, 0x1c

    add-long/2addr v1, v3

    invoke-virtual {v0, v1, v2}, Ljava/util/zip/ZipEntry;->setCompressedSize(J)V

    .line 59
    invoke-virtual {p1}, Ljava/util/zip/ZipEntry;->getTime()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/util/zip/ZipEntry;->setTime(J)V

    .line 60
    invoke-virtual {v0}, Les/so0;->h()V

    .line 61
    iget-object p1, p0, Lcom/estrongs/io/archive/aeszip/c;->e:Les/to0;

    invoke-virtual {p1, v0}, Les/to0;->a(Les/so0;)V

    .line 62
    iget-object p1, p0, Lcom/estrongs/io/archive/aeszip/c;->e:Les/to0;

    iget-object v0, p0, Lcom/estrongs/io/archive/aeszip/c;->f:Les/no0;

    invoke-interface {v0}, Les/no0;->c()[B

    move-result-object v0

    invoke-virtual {p1, v0}, Les/to0;->write([B)V

    .line 63
    iget-object p1, p0, Lcom/estrongs/io/archive/aeszip/c;->e:Les/to0;

    iget-object v0, p0, Lcom/estrongs/io/archive/aeszip/c;->f:Les/no0;

    invoke-interface {v0}, Les/no0;->b()[B

    move-result-object v0

    invoke-virtual {p1, v0}, Les/to0;->write([B)V

    const/16 p1, 0x400

    new-array p1, p1, [B

    .line 64
    invoke-virtual {p2, p1}, Les/uo0;->a([B)I

    move-result v0

    :cond_0
    const/4 v1, -0x1

    if-eq v0, v1, :cond_1

    .line 65
    iget-object v1, p0, Lcom/estrongs/io/archive/aeszip/c;->f:Les/no0;

    invoke-interface {v1, p1, v0}, Les/no0;->a([BI)V

    .line 66
    iget-object v1, p0, Lcom/estrongs/io/archive/aeszip/c;->e:Les/to0;

    const/4 v2, 0x0

    invoke-virtual {v1, p1, v2, v0}, Les/to0;->write([BII)V

    .line 67
    invoke-virtual {p2, p1}, Les/uo0;->a([B)I

    move-result v0

    .line 68
    iget-wide v1, p0, Les/f80;->c:J

    int-to-long v3, v0

    add-long/2addr v1, v3

    iput-wide v1, p0, Les/f80;->c:J

    .line 69
    iget-object v3, p0, Les/f80;->b:Les/l80;

    const-wide/16 v4, 0x2

    div-long/2addr v1, v4

    invoke-interface {v3, v1, v2}, Les/l80;->a(J)V

    .line 70
    iget-object v1, p0, Les/f80;->b:Les/l80;

    invoke-interface {v1}, Les/j80;->a()Z

    move-result v1

    if-eqz v1, :cond_0

    const/4 p1, 0x1

    .line 71
    iput-boolean p1, p0, Lcom/estrongs/io/archive/aeszip/c;->i:Z

    .line 72
    :cond_1
    iget-object p1, p0, Lcom/estrongs/io/archive/aeszip/c;->f:Les/no0;

    invoke-interface {p1}, Les/no0;->a()[B

    move-result-object p1

    .line 73
    iget-object p2, p0, Lcom/estrongs/io/archive/aeszip/c;->e:Les/to0;

    invoke-virtual {p2, p1}, Les/to0;->write([B)V

    return-void
.end method

.method protected a(Ljava/util/zip/ZipFile;)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const-string v0, ".tmp"

    .line 74
    new-instance v1, Les/uo0;

    invoke-virtual {p1}, Ljava/util/zip/ZipFile;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Les/uo0;-><init>(Ljava/lang/String;)V

    .line 75
    :try_start_0
    invoke-virtual {p1}, Ljava/util/zip/ZipFile;->entries()Ljava/util/Enumeration;

    move-result-object v2

    .line 76
    :goto_0
    invoke-interface {v2}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v3

    if-eqz v3, :cond_1

    .line 77
    iget-boolean v3, p0, Lcom/estrongs/io/archive/aeszip/c;->i:Z

    if-eqz v3, :cond_0

    goto :goto_1

    .line 78
    :cond_0
    invoke-interface {v2}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/zip/ZipEntry;

    .line 79
    invoke-virtual {v1, v3}, Les/uo0;->a(Ljava/util/zip/ZipEntry;)V

    .line 80
    invoke-virtual {p0, v3, v1}, Lcom/estrongs/io/archive/aeszip/c;->a(Ljava/util/zip/ZipEntry;Les/uo0;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    .line 81
    :cond_1
    :goto_1
    invoke-virtual {p1}, Ljava/util/zip/ZipFile;->close()V

    .line 82
    invoke-virtual {v1}, Les/uo0;->a()V

    .line 83
    iget-boolean p1, p0, Lcom/estrongs/io/archive/aeszip/c;->i:Z

    if-eqz p1, :cond_3

    .line 84
    iget-object p1, p0, Les/f80;->a:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/fs/impl/local/f;->c(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_2

    .line 85
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object p1

    iget-object v1, p0, Les/f80;->a:Ljava/lang/String;

    invoke-virtual {p1, v1}, Lcom/estrongs/fs/f;->b(Ljava/lang/String;)Z

    .line 86
    :cond_2
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Les/f80;->a:Ljava/lang/String;

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 87
    invoke-static {p1}, Lcom/estrongs/fs/impl/local/f;->c(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 88
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/estrongs/fs/f;->b(Ljava/lang/String;)Z

    :cond_3
    return-void

    :catchall_0
    move-exception v2

    .line 89
    invoke-virtual {p1}, Ljava/util/zip/ZipFile;->close()V

    .line 90
    invoke-virtual {v1}, Les/uo0;->a()V

    .line 91
    iget-boolean p1, p0, Lcom/estrongs/io/archive/aeszip/c;->i:Z

    if-eqz p1, :cond_5

    .line 92
    iget-object p1, p0, Les/f80;->a:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/fs/impl/local/f;->c(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_4

    .line 93
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object p1

    iget-object v1, p0, Les/f80;->a:Ljava/lang/String;

    invoke-virtual {p1, v1}, Lcom/estrongs/fs/f;->b(Ljava/lang/String;)Z

    .line 94
    :cond_4
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Les/f80;->a:Ljava/lang/String;

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 95
    invoke-static {p1}, Lcom/estrongs/fs/impl/local/f;->c(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 96
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/estrongs/fs/f;->b(Ljava/lang/String;)Z

    .line 97
    :cond_5
    goto :goto_3

    :goto_2
    throw v2

    :goto_3
    goto :goto_2
.end method
